using System;
using Sinacor.Servico.Bovespa.ResumoFinanceiro.Service.DataContract.Request;
using Sinacor.Servico.Bovespa.ResumoFinanceiro.BusinessEntity;

namespace Sinacor.Servico.Bovespa.ResumoFinanceiro.Service.ServiceImplementation.Translator
{
    public static class TranslateConsultarResumoFinanceiroRequest
    {
        public static BusinessEntity.ResumoFinanceiro ToResumoFinanceiro(DataContract.Request.ConsultarResumoFinanceiroRequest from)
        {
			BusinessEntity.ResumoFinanceiro to = new BusinessEntity.ResumoFinanceiro();
			to.ApelidoCliente = from.ApelidoCliente;
			to.DataPregao = from.DataPregao;
			to.TipoCliente = (Sinacor.Servico.Bovespa.ResumoFinanceiro.BusinessEntity.Enum.TipoCliente) from.TipoCliente;
			to.IsSomenteContaSelecionada = from.IsSomenteContaSelecionada;

			return to;
        }
    }
}

